from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import EnvironmentViewSet, HostTypeViewSet, HostGroupViewSet, HostViewSet

# 创建路由器
router = DefaultRouter()
router.register(r'environments', EnvironmentViewSet)
router.register(r'host-types', HostTypeViewSet)
router.register(r'host-groups', HostGroupViewSet)
router.register(r'hosts', HostViewSet)

urlpatterns = [
    path('', include(router.urls)),
]
